package com.mycoupon.mycouponframework.config;

import com.mycoupon.mycouponframework.web.GlobalExceptionHandler;
import org.springframework.context.annotation.Bean;

/**
 * @projectName: MyCoupon
 * @package: com.mycoupon.mycouponframework.config
 * @className: WebAutoConfiguration
 * @author: thinkBook
 * @description: Web自动装配
 * @date: 2025/4/5 21:39
 * @version: 1.0
 */
public class WebAutoConfiguration {

    // 全局异常处理器的自动装配
    @Bean
    public GlobalExceptionHandler globalExceptionHandler()
    {
        return new GlobalExceptionHandler();
    }
}
